// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2004-8-30

#ifndef __SOCKLISTENER_H_COMMON_BASE__
#define __SOCKLISTENER_H_COMMON_BASE__

#pragma once

#include "sockbase.h"

//##ModelId=44CF1757006D
class CJoySockListener : public CJoySockBase
{
protected:
    friend class CJoySocketTool;

	//##ModelId=44CF1757007E
    HANDLE m_hListenThread;
	//##ModelId=44CF1757007F
    virtual void OnAccept(CJoySockData* sockData);
public:
	//##ModelId=44CF17570082
    CJoySockListener(void);
	//##ModelId=44CF17570084
    virtual ~CJoySockListener(void);

	//##ModelId=44CF1757008C
    bool Start(int nPort);
	//##ModelId=44CF1757008E
    void Stop();
};

#endif  // __SOCKLISTENER_H_COMMON_BASE__
